
#include	<stdlib.h>
#include	"my.h"

char		*my_concat(char *str, char *str2)
{
  char		*str3;
  int		i;
  int		j;
  int		k;
  
  i = 0;
  j = 0;
  k = 0;
  if ((str3 = malloc((my_strlen(str) + my_strlen(str2) + 1)
		     * sizeof(*str3))) == NULL)
    return (NULL);
  while (str[i])
    str3[k++] = str[i++];
  while (str2[j] && str2[j] != '\n')
    str3[k++] = str2[j++];
  str3[k] = '\0';
  return (str3);
}
